from django.test import TestCase
from django.core.paginator import Paginator
# Create your tests here.
from recommendation.models import Resume


class ResumeMethodTest(TestCase):
    def test_paginator(self):
        """
        测试分页
        """
        resume = Resume.objects.all()
        resume_num = Resume.objects.count()
        p = Paginator(resume, 2)
        print(p.count, p.num_pages)
        print(resume.count())
